package com.dhcc.bpm.modules.content.service.impl;

import com.dhcc.bpm.modules.content.entity.Message;
import com.dhcc.bpm.modules.content.vo.MessageVO;
import com.dhcc.bpm.modules.content.mapper.MessageMapper;
import com.dhcc.bpm.modules.content.service.IMessageService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @ClassName MessageServiceImpl
 * @Description  推送消息表 服务实现类
 * @Author daina
 * @Date 2020/3/12 15:40
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service
public class MessageServiceImpl extends BaseServiceImpl<MessageMapper, Message> implements IMessageService {
	/**
	 * @Description 自定义分页
	 * @Author daina
	 * @Date 15:45 2020/3/12
	 * @param page
	 * @param message
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.content.vo.MessageVO>
	 **/
	@Override
	public IPage<MessageVO> selectMessagePage(IPage<MessageVO> page, MessageVO message) {
		return page.setRecords(baseMapper.selectMessagePage(page, message));
	}

}
